home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 2.7 KB | 128 lines | [TEXT/MPS ] |
- //# Copyright: © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
-
- #ifndef _DISPTCH_
- #define _DISPTCH_
-
- #ifndef _ODOBJECT_
- #include "ODObject.idl"
- #endif
-
- //=====================================================================================
- // Classes defined in this interface
- //=====================================================================================
-
- interface ODDispatcher;
-
- //=====================================================================================
- // Classes used by this interface
- //=====================================================================================
-
- interface ODDispatchModule;
- interface ODFrame;
- interface ODPart;
-
-
-
- //=====================================================================================
- // ODDispatcher
- //=====================================================================================
-
- interface ODDispatcher : ODObject
- {
- void AddDispatchModule(in ODEventType eventType,
- in ODDispatchModule dispatchModule);
-
- ODDispatchModule GetDispatchModule(in ODEventType eventType);
-
- void RemoveDispatchModule(in ODEventType eventType);
-
- void AddMonitor(in ODEventType eventType,
- in ODDispatchModule dispatchModule);
-
- void RemoveMonitor(in ODEventType eventType,
- in ODDispatchModule dispatchModule);
-
- ODBoolean Dispatch(inout ODEventData eventData);
-
- ODBoolean Redispatch(inout ODEventData eventData, inout ODEventInfo eventInfo);
-
- void Exit();
-
- ODBoolean ShouldExit();
-
- #ifdef _PLATFORM_MACINTOSH_
-
- void RegisterIdle(in ODPart part,
- in ODFrame frame,
- in ODIdleFrequency frequency);
-
- void UnregisterIdle(in ODPart part,
- in ODFrame frame);
-
- void SetIdleFrequency(in ODPart part,
- in ODFrame frame,
- in ODIdleFrequency frequency);
-
- void Yield(in ODFrame frame);
-
- void SetMouseRegion(in ODRgnHandle area);
-
- ODRgnHandle GetMouseRegion();
-
- void InvalidateFacetUnderMouse();
-
- ODSLong GetSleepTime();
-
- #endif //# _PLATFORM_MACINTOSH_
-
-
- #ifdef __SOMIDL__
- #ifdef _PLATFORM_MACINTOSH_
-
- implementation
- {
- majorversion = 1; minorversion = 0;
-
- functionprefix = ODDispatcher;
-
- override:
- somUninit,
- Purge;
-
- releaseorder:
- AddDispatchModule,
- GetDispatchModule,
- RemoveDispatchModule,
- AddMonitor,
- RemoveMonitor,
- Dispatch,
- Redispatch,
- Exit,
- ShouldExit,
- RegisterIdle,
- UnregisterIdle,
- SetIdleFrequency,
- Yield,
- SetMouseRegion,
- GetMouseRegion,
- InvalidateFacetUnderMouse,
- GetSleepTime,
- reserved1,
- reserved2,
- reserved3,
- reserved4,
- reserved5,
- reserved6,
- reserved7,
- reserved8;
-
-
- };
- #endif //# __SOMIDL__
- #endif //# _PLATFORM_MACINTOSH_
-
- };
-
- #endif //# _DISPTCH_
-
-